package com.itcast.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名字
     */
    @TableField("gname")
    private String gname;

    /**
     * 商品图片
     */
    private Integer sales;

    /**
     * 创建时间
     */
    @TableField("creationTime")
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date creationTime;

    /**
     * 商品价格
     */
    private Float price;

    /**
     * 商品简介
     */
    private String introduction;

    /**
     * 商品分类
     */
    private String item;

    /**
     * 商品浏览量
     */
    private Integer views;

    private String gimage;

    @TableField("goodsNumber")
    private Integer goodsNumber;


    private String a;
    private String b;
    private String c;



}
